package com.lihang.system.service.impl;

import com.lihang.system.entity.PunishmentRecord;
import com.lihang.system.mapper.PunishmentRecordMapper;
import com.lihang.system.service.IPunishmentRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lihang
 * @since 2023-05-13
 */
@Service
public class PunishmentRecordServiceImpl extends ServiceImpl<PunishmentRecordMapper, PunishmentRecord> implements IPunishmentRecordService {
    @Autowired
    private PunishmentRecordMapper punishmentRecordMapper;
    @Override
    public List<PunishmentRecord> queryPunishmentRecord(Integer stuId) {
        List<PunishmentRecord> punishmentRecords = punishmentRecordMapper.queryPunishmentRecord(stuId);
        return punishmentRecords;
    }
}
